package com.example.demo.mapper;

import com.example.demo.pojo.Course;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CourseMapper {
    List<Course> queryCourse();

    int addCourse(String course_name,Integer teacher_id,Integer classes_id);

    int updateCourse(Course course);

    int deleteCourse(int id);
}
